#!/bin/bash
#function:构建rpm安装包环境
#parmeter:
#author:QQ群 496379594
#version:1.0
#Test:CentOS6


yum -y install rpm-build rpmdevtools pcre-devel make m4 gcc-c++ autoconf automake ncurses-devel wget redhat-rpm-config
useradd rpmuse
su - rpmuse -c"
cat >>.rpmmacros<</
%_topdir      /home/rpmuse/rpmbuild
%make   make 
/
"
su - rpmuse -c"rpmdev-setuptree"
